package com.example.demo.controller;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.custom.AjaxResult;
import com.example.demo.entity.SysUser;
import com.example.demo.service.SaleComputerService;
import com.example.demo.service.SysUserService;

/**
 * @author DELL 计算销售车辆订交控制台
 */
@RestController
@RequestMapping(value = "/salecom")
public class SaleComputerController {

	@Autowired
	private SaleComputerService saleComService;

	@Autowired
	private SysUserService userService;

	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车销量   2
	 * @throws ParseException
	 */
	@RequestMapping(value = "/XinCheXiaoLiang")
	public Object xincheXiaoLiang(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date enDate1 = dateformat.parse(endDate);
		if (saleComService.newCarNums(user, beginDate1, enDate1) != null) {
			Integer newCarNums = saleComService.newCarNums(user, beginDate1, enDate1);
			if (newCarNums != null) {
				return new AjaxResult(newCarNums);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 获取城区交付量  3
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ChengQuJiaoFuShuLiang")
	public Object ChengQuJiaoFuShuLiang(Integer id, String beginDate, String endDate) throws ParseException {

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date enDate1 = dateformat.parse(endDate);
		SysUser user = userService.findById(id);
		if (saleComService.newCarChengQuNum(user, beginDate1, enDate1) != null) {
			Integer newCarNums = saleComService.newCarChengQuNum(user, beginDate1, enDate1);
			if (newCarNums != null) {
				return new AjaxResult(newCarNums);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 获取城郊交付量  4
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ChengJiaoJiaoFuShuLiang")
	public Object ChengJiaoJiaoFuShuLiang(Integer id, String beginDate, String endDate) throws ParseException {

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date enDate1 = dateformat.parse(endDate);
		SysUser user = userService.findById(id);
		if (saleComService.newCarChengJiaoNum(user, beginDate1, enDate1) != null) {
			Integer ChengJiaoJiaoFuShuLiang = saleComService.newCarChengJiaoNum(user, beginDate1, enDate1);
			if (ChengJiaoJiaoFuShuLiang != null) {
				return new AjaxResult(ChengJiaoJiaoFuShuLiang);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 获取区域外交付量  5
	 * @throws ParseException
	 */
	@RequestMapping(value = "/QuYuWaiJiaoFuShuLiang")
	public Object QuYuWaiJiaoFuShuLiang(Integer id, String beginDate, String endDate) throws ParseException {

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		SysUser user = userService.findById(id);
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.newCarQuYuWaiNums(user, beginDate1, endDate1) != null) {
			Integer newCarQuYuWaiNums = saleComService.newCarQuYuWaiNums(user, beginDate1, endDate1);
			if (newCarQuYuWaiNums != null) {
				return new AjaxResult(newCarQuYuWaiNums);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车成交率 (新车销量/展厅留档量) 6
	 * @throws ParseException
	 */
	@RequestMapping(value = "/XinCheChengJiaoLv")
	public Object XinCheChengJiaoLv(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.XinCheChengJiaoLv(user, beginDate1, endDate1) != null) {
			Float XinCheChengJiaoLv = saleComService.XinCheChengJiaoLv(user, beginDate1, endDate1);
			if (XinCheChengJiaoLv != null) {
				return new AjaxResult(XinCheChengJiaoLv);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 城区成交率率 7
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ChengQuChengJiaoLv")
	public Object ChengQuChengJiaoLv(Integer id, String beginDate, String endDate) throws ParseException {

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		SysUser user = userService.findById(id);
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ChengQuChengJiaoLv(user, beginDate1, endDate1) != null) {
			Float chengQuChengJiaoLv = saleComService.ChengQuChengJiaoLv(user, beginDate1, endDate1);
			if (chengQuChengJiaoLv != null) {
				return new AjaxResult(chengQuChengJiaoLv);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 城郊成交率 8
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ChengJiaoChengJiaoLv")
	public Object ChengJiaoChengJiaoLv(Integer id, String beginDate, String endDate) throws ParseException {

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		SysUser user = userService.findById(id);
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ChengJiaoChengJiaoLv(user, beginDate1, endDate1) != null) {
			Float chengJiaoChengJiaoLv = saleComService.ChengJiaoChengJiaoLv(user, beginDate1, endDate1);
			if (chengJiaoChengJiaoLv != null) {
				return new AjaxResult(chengJiaoChengJiaoLv);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 区域外成交率 9
	 * @throws ParseException
	 */
	@RequestMapping(value = "/QuYuWaiChengJiaoLv")
	public Object QuYuWaiChengJiaoLv(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.QuYuWaiChengJiaoLv(user, beginDate1, endDate1) != null) {
			Float quYuWaiChengJiaoLv = saleComService.QuYuWaiChengJiaoLv(user, beginDate1, endDate1);
			if (quYuWaiChengJiaoLv != null) {
				return new AjaxResult(quYuWaiChengJiaoLv);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 展厅线索量 10
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ZhanTingXianSuo")
	public Object ZhanTingXianSuo(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ZhanTingXianSuo(user, beginDate1, endDate1) != null) {
			Integer zhanTingXianSuo = saleComService.ZhanTingXianSuo(user, beginDate1, endDate1);
			if (zhanTingXianSuo != null) {
				return new AjaxResult(zhanTingXianSuo);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 展厅留档量 11
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ZhanTingLiuDangLiang")
	public Object ZhanTingLiuDangLiang(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ZhanTingLiudangNums(user, beginDate1, endDate1) != null) {
			Integer zhanTingLiudangNums = saleComService.ZhanTingLiudangNums(user, beginDate1, endDate1);
			if (zhanTingLiudangNums != null) {
				return new AjaxResult(zhanTingLiudangNums);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新增来店线索 12
	 * @throws ParseException
	 */
	@RequestMapping(value = "/XinZengLaidian")
	public Object XinZengLaidian(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.LaiDian1XianSuo(user, beginDate1, endDate1) != null) {
			Integer laiDian1XianSuo = saleComService.LaiDian1XianSuo(user, beginDate1, endDate1);
			if (laiDian1XianSuo != null) {
				return new AjaxResult(laiDian1XianSuo);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 城区来店线索 13
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ChengQuLaiDian")
	public Object ChengQuLaiDian(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ChengQuXianSuo1(user, beginDate1, endDate1) != null) {
			Integer chengQuXianSuo1 = saleComService.ChengQuXianSuo1(user, beginDate1, endDate1);
			if (chengQuXianSuo1 != null) {
				return new AjaxResult(chengQuXianSuo1);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 城郊来店线索 14
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ChengJiaoLaiDian")
	public Object ChengJiaoLaiDian(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ChengJiaoXianSuo1(user, beginDate1, endDate1) != null) {
			Integer chengJiaoXianSuo1 = saleComService.ChengJiaoXianSuo1(user, beginDate1, endDate1);
			if (chengJiaoXianSuo1 != null) {
				return new AjaxResult(chengJiaoXianSuo1);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 区域外来店线索 15
	 * @throws ParseException
	 */
	@RequestMapping(value = "/QuYuWaiLaiDian")
	public Object QuYuWaiLaiDian(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.QuYuWaiXianSuo1(user, beginDate1, endDate1) != null) {
			Integer quYuWaiXianSuo1 = saleComService.QuYuWaiXianSuo1(user, beginDate1, endDate1);
			if (quYuWaiXianSuo1 != null) {
				return new AjaxResult(quYuWaiXianSuo1);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新增来电线索 16
	 * @throws ParseException
	 */
	@RequestMapping(value = "/XinZengLaiDianXianSuo")
	public Object XinZengLaiDianXianSuo(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.LaiDianXianSuo(user, beginDate1, endDate1) != null) {
			Integer laiDianXianSuo = saleComService.LaiDianXianSuo(user, beginDate1, endDate1);
			if (laiDianXianSuo != null) {
				return new AjaxResult(laiDianXianSuo);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 城区来电线索 17
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ChengQuLaiDianXianSuo")
	public Object ChengQuLaiDianXianSuo(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ChengQuXianSuo(user, beginDate1, endDate1) != null) {
			Integer chengQuXianSuo = saleComService.ChengQuXianSuo(user, beginDate1, endDate1);
			if (chengQuXianSuo != null) {
				return new AjaxResult(chengQuXianSuo);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 城郊来电线索 18
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ChengJiaoLaiDianXianSuo")
	public Object ChengJiaoLaiDianXianSuo(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ChengJiaoXianSuo(user, beginDate1, endDate1) != null) {
			Integer chengJiaoXianSuo = saleComService.ChengJiaoXianSuo(user, beginDate1, endDate1);
			if (chengJiaoXianSuo != null) {
				return new AjaxResult(chengJiaoXianSuo);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 区域外来电线索 19
	 * @throws ParseException
	 */
	@RequestMapping(value = "/QuYuWaiLaiDianXianSuo")
	public Object QuYuWaiLaiDianXianSuo(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.QuYuWaiXianSuo(user, beginDate1, endDate1) != null) {
			Integer quYuWaiXianSuo = saleComService.QuYuWaiXianSuo(user, beginDate1, endDate1);
			if (quYuWaiXianSuo != null) {
				return new AjaxResult(quYuWaiXianSuo);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新增来电(店)留档量 20
	 * @throws ParseException
	 */
	@RequestMapping(value = "/XinZengLaiDianLiuDangLiang")
	public Object XinZengLaiDianLiuDangLiang(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.LaiDianLiuDangNums(user, beginDate1, endDate1) != null) {
			Integer laiDianLiuDangNums = saleComService.LaiDianLiuDangNums(user, beginDate1, endDate1);
			if (laiDianLiuDangNums != null) {
				return new AjaxResult(laiDianLiuDangNums);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新增展会及外拓线索 21
	 * @throws ParseException
	 */
	@RequestMapping(value = "/ZhanHuiJiWaiTuoXianSuo")
	public Object ZhanHuiJiWaiTuoXianSuo(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ZhanHuiJiWaiTuoXianSuo(user, beginDate1, endDate1) != null) {
			Integer zhanHuiJiWaiTuoXianSuo = saleComService.ZhanHuiJiWaiTuoXianSuo(user, beginDate1, endDate1);
			if (zhanHuiJiWaiTuoXianSuo != null) {
				return new AjaxResult(zhanHuiJiWaiTuoXianSuo);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}
	
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新增展会线索 22
	 * @throws ParseException
	 */
	@RequestMapping(value = "/XinZengZhanHuiXianSuo")
	public Object XinZengZhanHuiXianSuo(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.ZhanHuiXianSuo(user, beginDate1, endDate1) != null) {
			Integer zhanHuiXianSuo = saleComService.ZhanHuiXianSuo(user, beginDate1, endDate1);
			if (zhanHuiXianSuo != null) {
				return new AjaxResult(zhanHuiXianSuo);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新增外拓线索 23
	 * @throws ParseException
	 */
	@RequestMapping(value = "/WaiTuoXianSuo")
	public Object WaiTuoXianSuo(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.WaiTuoXianSuo(user, beginDate1, endDate1) != null) {
			Integer waiTuoXianSuo = saleComService.WaiTuoXianSuo(user, beginDate1, endDate1);
			if (waiTuoXianSuo != null) {
				return new AjaxResult(waiTuoXianSuo);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}
	
	

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新增展会及外拓留档量 24
	 * @throws ParseException
	 */
	@RequestMapping(value = "/zhanhuiWaituoLiuDangNums")
	public Object zhanhuiWaituoLiuDangNums(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.zhanhuiWaituoLiuDangNums(user, beginDate1, endDate1) != null) {
			Integer zhanhuiWaituoLiuDangNums = saleComService.zhanhuiWaituoLiuDangNums(user, beginDate1, endDate1);
			if (zhanhuiWaituoLiuDangNums != null) {
				return new AjaxResult(zhanhuiWaituoLiuDangNums);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 首次邀约来店量 25
	 * @throws ParseException
	 */
	@RequestMapping(value = "/firstLaiDianZongHe")
	public Object firstLaiDianZongHe(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.firstLaiDianZongHe(user, beginDate1, endDate1) != null) {
			Integer firstLaiDianZongHe = saleComService.firstLaiDianZongHe(user, beginDate1, endDate1);
			if (firstLaiDianZongHe != null) {
				return new AjaxResult(firstLaiDianZongHe);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 首次邀约        城区来店量 26
	 * @throws ParseException
	 */
	@RequestMapping(value = "/firstOneChengQuLaiDian")
	public Object firstOneChengQuLaiDian(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.firstOneChengQuLaiDian(user, beginDate1, endDate1) != null) {
			Integer firstOneChengQuLaiDian = saleComService.firstOneChengQuLaiDian(user, beginDate1, endDate1);
			if (firstOneChengQuLaiDian != null) {
				return new AjaxResult(firstOneChengQuLaiDian);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 首次邀约         城郊来店量 27
	 * @throws ParseException
	 */
	@RequestMapping(value = "/firstOneChengJiaoLaiDian")
	public Object firstOneChengJiaoLaiDian(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.firstOneChengJiaoLaiDian(user, beginDate1, endDate1) != null) {
			Integer firstOneChengJiaoLaiDian = saleComService.firstOneChengJiaoLaiDian(user, beginDate1, endDate1);
			if (firstOneChengJiaoLaiDian != null) {
				return new AjaxResult(firstOneChengJiaoLaiDian);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 首次邀约   区域外来店量   28
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/firstOneQuYuWaiLaiDian")
	public Object firstOneQuYuWaiLaiDian(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.firstOneQuYuWaiLaiDian(user, beginDate1, endDate1)!=null) {
			Integer firstOneQuYuWaiLaiDian = saleComService.firstOneQuYuWaiLaiDian(user, beginDate1, endDate1);
			if(firstOneQuYuWaiLaiDian!=null) {
				return new AjaxResult(firstOneQuYuWaiLaiDian);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 二次邀约及以上来店量  29
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/SecondTwoLaiDianZongHe")
	public Object SecondTwoLaiDianZongHe(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.SecondTwoLaiDianZongHe(user, beginDate1, endDate1)!=null) {
			Integer secondTwoLaiDianZongHe = saleComService.SecondTwoLaiDianZongHe(user, beginDate1, endDate1);
			if(secondTwoLaiDianZongHe!=null) {
				return new AjaxResult(secondTwoLaiDianZongHe);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 二次邀约及以上城区来店量  30
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/SecondTwoChengQuLaiDian")
	public Object SecondTwoChengQuLaiDian(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.SecondTwoChengQuLaiDian(user, beginDate1, endDate1)!=null) {
			Integer secondTwoChengQuLaiDian = saleComService.SecondTwoChengQuLaiDian(user, beginDate1, endDate1);
			if(secondTwoChengQuLaiDian!=null) {
				return new AjaxResult(secondTwoChengQuLaiDian);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 二次邀约及以上城郊来店量  31
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/SecondTwoChengJiaoLaiDian")
	public Object SecondTwoChengJiaoLaiDian(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.SecondTwoChengJiaoLaiDian(user, beginDate1, endDate1)!=null) {
			Integer secondTwoChengJiaoLaiDian = saleComService.SecondTwoChengJiaoLaiDian(user, beginDate1, endDate1);
			if(secondTwoChengJiaoLaiDian!=null) {
				return new AjaxResult(secondTwoChengJiaoLaiDian);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 二次邀约及以上区域外来店量  32
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/SecondTwoQuYuWaiLaiDian")
	public Object SecondTwoQuYuWaiLaiDian(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.SecondTwoQuYuWaiLaiDian(user, beginDate1, endDate1)!=null) {
			Integer secondTwoQuYuWaiLaiDian = saleComService.SecondTwoQuYuWaiLaiDian(user, beginDate1, endDate1);
			if(secondTwoQuYuWaiLaiDian!=null) {
				return new AjaxResult(secondTwoQuYuWaiLaiDian);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 试乘试驾数量  33
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/ShiChengShiJiaNum")
	public Object ShiChengShiJiaNum(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.ShiChengShiJiaNum(user, beginDate1, endDate1)!=null) {
			Integer shiChengShiJiaNum = saleComService.ShiChengShiJiaNum(user, beginDate1, endDate1);
			if(shiChengShiJiaNum!=null) {
				return new AjaxResult(shiChengShiJiaNum);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 留档率  34
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/LiuDangLv")
	public Object LiuDangLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.LiuDangLv(user, beginDate1, endDate1)!=null) {
			Float liuDangLv = saleComService.LiuDangLv(user, beginDate1, endDate1);
			if(liuDangLv!=null) {
				return new AjaxResult(liuDangLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 首次邀约来店率  35
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/ShouCiYaoYueLaiDianLv")
	public Object ShouCiYaoYueLaiDianLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.ShouCiYaoYueLaiDianLv(user, beginDate1, endDate1)!=null) {
			Float shouCiYaoYueLaiDianLv = saleComService.ShouCiYaoYueLaiDianLv(user, beginDate1, endDate1);
			if(shouCiYaoYueLaiDianLv!=null) {
				return new AjaxResult(shouCiYaoYueLaiDianLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 二次及以上邀约来店率  36
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/twoYaoYueLaiDianLv")
	public Object twoYaoYueLaiDianLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.twoYaoYueLaiDianLv(user, beginDate1, endDate1)!=null) {
			Float twoYaoYueLaiDianLv = saleComService.twoYaoYueLaiDianLv(user, beginDate1, endDate1);
			if(twoYaoYueLaiDianLv!=null) {
				return new AjaxResult(twoYaoYueLaiDianLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 试乘试驾率  37
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/ShiChengShiJiaLv")
	public Object ShiChengShiJiaLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.ShiChengShiJiaLv(user, beginDate1, endDate1)!=null) {
			Float shiChengShiJiaLv = saleComService.ShiChengShiJiaLv(user, beginDate1, endDate1);
			if(shiChengShiJiaLv!=null) {
				return new AjaxResult(shiChengShiJiaLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");

		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 累计意向客户级别数量  43
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/LeiJiLeveLHeji")
	public Object LeiJiLeveLHeji(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.LeiJiLeveLHeji(user, beginDate1, endDate1)!=null) {
			Integer leiJiLeveLHeji = saleComService.LeiJiLeveLHeji(user, beginDate1, endDate1);
			if(leiJiLeveLHeji!=null) {
				return new AjaxResult(leiJiLeveLHeji);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return H级客户数量  44
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/HLevel")
	public Object HLevel(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.HLevel(user, beginDate1, endDate1)!=null) {
			Integer hLevel = saleComService.HLevel(user, beginDate1, endDate1);
			if(hLevel!=null) {
				return new AjaxResult(hLevel);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return A级客户数量  45
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/ALevel")
	public Object ALevel(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.ALevel(user, beginDate1, endDate1)!=null) {
			Integer aLevel = saleComService.ALevel(user, beginDate1, endDate1);
			if(aLevel!=null) {
				return new AjaxResult(aLevel);
			}else{
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return B级客户数量 46
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/BLevel")
	public Object BLevel(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.BLevel(user, beginDate1, endDate1)!=null) {
			Integer bLevel = saleComService.BLevel(user, beginDate1, endDate1);
			if(bLevel!=null) {
				return new AjaxResult(bLevel);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return C级客户数量 47
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/CLevel")
	public Object CLevel(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.CLevel(user, beginDate1, endDate1)!=null) {
			Integer cLevel = saleComService.CLevel(user, beginDate1, endDate1);
			if(cLevel!=null) {
				return new AjaxResult(cLevel);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新增战败失控客户数量 48
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinZengZhanBaiShiKongNum")
	public Object XinZengZhanBaiShiKongNum(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinZengZhanBaiShiKongNum(user, beginDate1, endDate1)!=null) {
			Integer xinZengZhanBaiShiKongNum = saleComService.XinZengZhanBaiShiKongNum(user, beginDate1, endDate1);
			if(xinZengZhanBaiShiKongNum!=null) {
				return new AjaxResult(xinZengZhanBaiShiKongNum);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 战败失控率 49
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/ZhanBaiShiKongLv")
	public Object ZhanBaiShiKongLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.ZhanBaiShiKongLv(user, beginDate1, endDate1)!=null) {
			Integer zhanBaiShiKongLv = saleComService.ZhanBaiShiKongLv(user, beginDate1, endDate1);
			if(zhanBaiShiKongLv!=null) {
				return new AjaxResult(zhanBaiShiKongLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交付目标台数  50
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJiaoFuMuBiaoTaiShu")
	public Object XinCheJiaoFuMuBiaoTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJiaoFuMuBiaoTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheJiaoFuMuBiaoTaiShu = saleComService.XinCheJiaoFuMuBiaoTaiShu(user, beginDate1, endDate1);
			if(XinCheJiaoFuMuBiaoTaiShu!=null) {
				return new AjaxResult(XinCheJiaoFuMuBiaoTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交付实际台数   51
	 * @throws ParseException
	 */
	@RequestMapping(value = "/xinCheJiaoFuShiJiTaiShu")
	public Object xinCheJiaoFuShiJiTaiShu(Integer id, String beginDate, String endDate) throws ParseException {
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		SysUser user = userService.findById(id);
		Date beginDate1 = dateformat.parse(beginDate);
		Date enDate1 = dateformat.parse(endDate);
		if (saleComService.newCarNums(user, beginDate1, enDate1) != null) {
			Integer newCarNums = saleComService.newCarNums(user, beginDate1, enDate1);
			if (newCarNums != null) {
				return new AjaxResult(newCarNums);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交付目标台数达成率   52
	 * @throws ParseException
	 */
	@RequestMapping(value = "/XinCheJiaoFuMuBiaoTaiShuDaChengLv")
	public Object XinCheJiaoFuMuBiaoTaiShuDaChengLv(Integer id, String beginDate, String endDate) throws ParseException {
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		SysUser user = userService.findById(id);
		Date beginDate1 = dateformat.parse(beginDate);
		Date enDate1 = dateformat.parse(endDate);
		if (saleComService.XinCheJiaoFuMuBiaoTaiShuDaChengLv(user, beginDate1, enDate1) != null) {
			 Float xinCheJiaoFuMuBiaoTaiShuDaChengLv = saleComService.XinCheJiaoFuMuBiaoTaiShuDaChengLv(user, beginDate1, enDate1);
			if (xinCheJiaoFuMuBiaoTaiShuDaChengLv != null) {
				return new AjaxResult(xinCheJiaoFuMuBiaoTaiShuDaChengLv);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车成交率  53
	 * @throws ParseException
	 */
	@RequestMapping(value = "/XinCheChengJiaoLv1")
	public Object XinCheChengJiaoLv1(Integer id, String beginDate, String endDate) throws ParseException {
		SysUser user = userService.findById(id);

		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		Date beginDate1 = dateformat.parse(beginDate);
		Date endDate1 = dateformat.parse(endDate);
		if (saleComService.XinCheChengJiaoLv(user, beginDate1, endDate1) != null) {
			Float XinCheChengJiaoLv = saleComService.XinCheChengJiaoLv(user, beginDate1, endDate1);
			if (XinCheChengJiaoLv != null) {
				return new AjaxResult(XinCheChengJiaoLv);
			} else {
				return new AjaxResult(0);
			}
		} else {
			return new AjaxResult(false, "没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交强险目标台数  54
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJiaoQiangXianMuBiaoTaiShu")
	public Object XinCheJiaoQiangXianMuBiaoTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJiaoQiangXianMuBiaoTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheJiaoQiangXianMuBiaoTaiShu = saleComService.XinCheJiaoQiangXianMuBiaoTaiShu(user, beginDate1, endDate1);
			if(XinCheJiaoQiangXianMuBiaoTaiShu!=null) {
				return new AjaxResult(XinCheJiaoQiangXianMuBiaoTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交强险实际台数  55
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJiaoQiangXianShiJiTaiShu")
	public Object XinCheJiaoQiangXianShiJiTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJiaoQiangXianShiJiTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheJiaoQiangXianShiJiTaiShu = saleComService.XinCheJiaoQiangXianShiJiTaiShu(user, beginDate1, endDate1);
			if(XinCheJiaoQiangXianShiJiTaiShu!=null) {
				return new AjaxResult(XinCheJiaoQiangXianShiJiTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交强险目标达成率  56
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJiaoQiangXianMuBiaoDaChengLv")
	public Object XinCheJiaoQiangXianMuBiaoDaChengLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJiaoQiangXianMuBiaoDaChengLv(user, beginDate1, endDate1)!=null) {
			Float xinCheJiaoQiangXianMuBiaoDaChengLv = saleComService.XinCheJiaoQiangXianMuBiaoDaChengLv(user, beginDate1, endDate1);
			if(xinCheJiaoQiangXianMuBiaoDaChengLv!=null) {
				return new AjaxResult(xinCheJiaoQiangXianMuBiaoDaChengLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交强险投保率  57
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJiaoQiangXianTouBaoLv")
	public Object XinCheJiaoQiangXianTouBaoLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJiaoQiangXianTouBaoLv(user, beginDate1, endDate1)!=null) {
			Float XinCheJiaoQiangXianTouBaoLv = saleComService.XinCheJiaoQiangXianTouBaoLv(user, beginDate1, endDate1);
			if(XinCheJiaoQiangXianTouBaoLv!=null) {
				return new AjaxResult(XinCheJiaoQiangXianTouBaoLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车商业险目标台数  58
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheShangYeXianMuBiaoTaiShu")
	public Object XinCheShangYeXianMuBiaoTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheShangYeXianMuBiaoTaiShu(user, beginDate1, endDate1)!=null) {
			Integer xinCheShangYeXianMuBiaoTaiShu = saleComService.XinCheShangYeXianMuBiaoTaiShu(user, beginDate1, endDate1);
			if(xinCheShangYeXianMuBiaoTaiShu!=null) {
				return new AjaxResult(xinCheShangYeXianMuBiaoTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车商业险实际台数  59
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheShangYeXianShiJiTaiShu")
	public Object XinCheShangYeXianShiJiTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheShangYeXianShiJiTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheShangYeXianShiJiTaiShu = saleComService.XinCheShangYeXianShiJiTaiShu(user, beginDate1, endDate1);
			if(XinCheShangYeXianShiJiTaiShu!=null) {
				return new AjaxResult(XinCheShangYeXianShiJiTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车商业险目标达成率  60
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheShangYeXianMuBiaoDaChengLv")
	public Object XinCheShangYeXianMuBiaoDaChengLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheShangYeXianShiJiTaiShu(user, beginDate1, endDate1)!=null) {
			Float xinCheShangYeXianMuBiaoDaChengLv = saleComService.XinCheShangYeXianMuBiaoDaChengLv(user, beginDate1, endDate1);
			if(xinCheShangYeXianMuBiaoDaChengLv!=null) {
				return new AjaxResult(xinCheShangYeXianMuBiaoDaChengLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车商业险投保率  61
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheShangYeXianTouBaoLv")
	public Object XinCheShangYeXianTouBaoLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheShangYeXianTouBaoLv(user, beginDate1, endDate1)!=null) {
			Float XinCheShangYeXianTouBaoLv = saleComService.XinCheShangYeXianTouBaoLv(user, beginDate1, endDate1);
			if(XinCheShangYeXianTouBaoLv!=null) {
				return new AjaxResult(XinCheShangYeXianTouBaoLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车精品销售目标台数  62
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJingPinXiaoShouMuBiaoTaiShu")
	public Object XinCheJingPinXiaoShouMuBiaoTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJingPinXiaoShouMuBiaoTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheJingPinXiaoShouMuBiaoTaiShu = saleComService.XinCheJingPinXiaoShouMuBiaoTaiShu(user, beginDate1, endDate1);
			if(XinCheJingPinXiaoShouMuBiaoTaiShu!=null) {
				return new AjaxResult(XinCheJingPinXiaoShouMuBiaoTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车精品销售实际台数  63
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJingPinXiaoShouShiJiTaiShu")
	public Object XinCheJingPinXiaoShouShiJiTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJingPinXiaoShouShiJiTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheJingPinXiaoShouShiJiTaiShu = saleComService.XinCheJingPinXiaoShouShiJiTaiShu(user, beginDate1, endDate1);
			if(XinCheJingPinXiaoShouShiJiTaiShu!=null) {
				return new AjaxResult(XinCheJingPinXiaoShouShiJiTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车精品销售目标达成率  64
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJingPinXiaoShouMuBiaoDaChengLv")
	public Object XinCheJingPinXiaoShouMuBiaoDaChengLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJingPinXiaoShouMuBiaoDaChengLv(user, beginDate1, endDate1)!=null) {
			Float xinCheJingPinXiaoShouMuBiaoDaChengLv = saleComService.XinCheJingPinXiaoShouMuBiaoDaChengLv(user, beginDate1, endDate1);
			if(xinCheJingPinXiaoShouMuBiaoDaChengLv!=null) {
				return new AjaxResult(xinCheJingPinXiaoShouMuBiaoDaChengLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车精品销售率  65
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJingPinXiaoShouLv")
	public Object XinCheJingPinXiaoShouLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJingPinXiaoShouLv(user, beginDate1, endDate1)!=null) {
			Float XinCheJingPinXiaoShouLv = saleComService.XinCheJingPinXiaoShouLv(user, beginDate1, endDate1);
			if(XinCheJingPinXiaoShouLv!=null) {
				return new AjaxResult(XinCheJingPinXiaoShouLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车金融车目标台数  66
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJinRongCheMuBiaoTaiShu")
	public Object XinCheJinRongCheMuBiaoTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJinRongCheMuBiaoTaiShu(user, beginDate1, endDate1)!=null) {
			Integer xinCheJinRongCheMuBiaoTaiShu = saleComService.XinCheJinRongCheMuBiaoTaiShu(user, beginDate1, endDate1);
			if(xinCheJinRongCheMuBiaoTaiShu!=null) {
				return new AjaxResult(xinCheJinRongCheMuBiaoTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车金融车实际台数  67
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJinRongCheXiaoShouShiJiTaiShu")
	public Object XinCheJinRongCheXiaoShouShiJiTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJinRongCheMuBiaoTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheJinRongCheXiaoShouShiJiTaiShu = saleComService.XinCheJinRongCheXiaoShouShiJiTaiShu(user, beginDate1, endDate1);
			if(XinCheJinRongCheXiaoShouShiJiTaiShu!=null) {
				return new AjaxResult(XinCheJinRongCheXiaoShouShiJiTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车金融车目标达成率  68
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJinRongCheMuBiaoDaChengLv")
	public Object XinCheJinRongCheMuBiaoDaChengLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJinRongCheMuBiaoDaChengLv(user, beginDate1, endDate1)!=null) {
			Float XinCheJinRongCheMuBiaoDaChengLv = saleComService.XinCheJinRongCheMuBiaoDaChengLv(user, beginDate1, endDate1);
			if(XinCheJinRongCheMuBiaoDaChengLv!=null) {
				return new AjaxResult(XinCheJinRongCheMuBiaoDaChengLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车金融车渗透率  69
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheJinRongCheShenTouLv")
	public Object XinCheJinRongCheShenTouLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheJinRongCheShenTouLv(user, beginDate1, endDate1)!=null) {
			Float XinCheJinRongCheShenTouLv = saleComService.XinCheJinRongCheShenTouLv(user, beginDate1, endDate1);
			if(XinCheJinRongCheShenTouLv!=null) {
				return new AjaxResult(XinCheJinRongCheShenTouLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车保养套餐销售目标台数  70
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu")
	public Object XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheXiaoShouShouRu(user, beginDate1, endDate1)!=null) {
			Integer XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu = saleComService.XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu(user, beginDate1, endDate1);
			if(XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu!=null) {
				return new AjaxResult(XinCheBaoYangTaoCanXiaoShouMuBiaoTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车保养套餐销售实际台数  71
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheBaoYangTaoCanXiaoShouShiJiTaiShu")
	public Object XinCheBaoYangTaoCanXiaoShouShiJiTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheBaoYangTaoCanXiaoShouShiJiTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheBaoYangTaoCanXiaoShouShiJiTaiShu = saleComService.XinCheBaoYangTaoCanXiaoShouShiJiTaiShu(user, beginDate1, endDate1);
			if(XinCheBaoYangTaoCanXiaoShouShiJiTaiShu!=null) {
				return new AjaxResult(XinCheBaoYangTaoCanXiaoShouShiJiTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车保养套餐销售目标达成率  72
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheBaoYangTaoCanMuBiaoDaChengLv")
	public Object XinCheBaoYangTaoCanMuBiaoDaChengLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheBaoYangTaoCanMuBiaoDaChengLv(user, beginDate1, endDate1)!=null) {
			Float xinCheBaoYangTaoCanMuBiaoDaChengLv = saleComService.XinCheBaoYangTaoCanMuBiaoDaChengLv(user, beginDate1, endDate1);
			if(xinCheBaoYangTaoCanMuBiaoDaChengLv!=null) {
				return new AjaxResult(xinCheBaoYangTaoCanMuBiaoDaChengLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车保养套餐销售率  73
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheBaoYangTaoCanXiaoShouLv")
	public Object XinCheBaoYangTaoCanXiaoShouLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheBaoYangTaoCanXiaoShouLv(user, beginDate1, endDate1)!=null) {
			Float XinCheBaoYangTaoCanXiaoShouLv = saleComService.XinCheBaoYangTaoCanXiaoShouLv(user, beginDate1, endDate1);
			if(XinCheBaoYangTaoCanXiaoShouLv!=null) {
				return new AjaxResult(XinCheBaoYangTaoCanXiaoShouLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车延保销售目标台数  74
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheYanBaoXiaoShouMuBiaoTaiShu")
	public Object XinCheYanBaoXiaoShouMuBiaoTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheYanBaoXiaoShouMuBiaoTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheYanBaoXiaoShouMuBiaoTaiShu = saleComService.XinCheYanBaoXiaoShouMuBiaoTaiShu(user, beginDate1, endDate1);
			if(XinCheYanBaoXiaoShouMuBiaoTaiShu!=null) {
				return new AjaxResult(XinCheYanBaoXiaoShouMuBiaoTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车延保销售实际台数 75
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheYanBaoXiaoShouShiJiTaiShu")
	public Object XinCheYanBaoXiaoShouShiJiTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheYanBaoXiaoShouShiJiTaiShu(user, beginDate1, endDate1)!=null) {
			Integer XinCheYanBaoXiaoShouShiJiTaiShu = saleComService.XinCheYanBaoXiaoShouShiJiTaiShu(user, beginDate1, endDate1);
			if(XinCheYanBaoXiaoShouShiJiTaiShu!=null) {
				return new AjaxResult(XinCheYanBaoXiaoShouShiJiTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车延保销售目标达成率 76
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheYanBaoMuBiaoDaChengLv")
	public Object XinCheYanBaoMuBiaoDaChengLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheYanBaoMuBiaoDaChengLv(user, beginDate1, endDate1)!=null) {
			 Float xinCheYanBaoMuBiaoDaChengLv = saleComService.XinCheYanBaoMuBiaoDaChengLv(user, beginDate1, endDate1);
			if(xinCheYanBaoMuBiaoDaChengLv!=null) {
				return new AjaxResult(xinCheYanBaoMuBiaoDaChengLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车延保销售率 77
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheYanBaoXiaoShouLv")
	public Object XinCheYanBaoXiaoShouLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheYanBaoXiaoShouLv(user, beginDate1, endDate1)!=null) {
			 Float XinCheYanBaoXiaoShouLv = saleComService.XinCheYanBaoXiaoShouLv(user, beginDate1, endDate1);
			if(XinCheYanBaoXiaoShouLv!=null) {
				return new AjaxResult(XinCheYanBaoXiaoShouLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车代办上牌目标台数 78
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheDaiBanShangPaiMuBiaoTaiShu")
	public Object XinCheDaiBanShangPaiMuBiaoTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheDaiBanShangPaiMuBiaoTaiShu(user, beginDate1, endDate1)!=null) {
			 Integer xinCheDaiBanShangPaiMuBiaoTaiShu = saleComService.XinCheDaiBanShangPaiMuBiaoTaiShu(user, beginDate1, endDate1);
			if(xinCheDaiBanShangPaiMuBiaoTaiShu!=null) {
				return new AjaxResult(xinCheDaiBanShangPaiMuBiaoTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车代办上牌实际台数 79
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheDaiBanShangPaiShiJiTaiShu")
	public Object XinCheDaiBanShangPaiShiJiTaiShu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheDaiBanShangPaiShiJiTaiShu(user, beginDate1, endDate1)!=null) {
			 Integer XinCheDaiBanShangPaiShiJiTaiShu = saleComService.XinCheDaiBanShangPaiShiJiTaiShu(user, beginDate1, endDate1);
			if(XinCheDaiBanShangPaiShiJiTaiShu!=null) {
				return new AjaxResult(XinCheDaiBanShangPaiShiJiTaiShu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车代办上牌目标达成率 80
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheDaiBanShangPaiMuBiaoDaChengLv")
	public Object XinCheDaiBanShangPaiMuBiaoDaChengLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheDaiBanShangPaiMuBiaoDaChengLv(user, beginDate1, endDate1)!=null) {
			 Float xinCheDaiBanShangPaiMuBiaoDaChengLv = saleComService.XinCheDaiBanShangPaiMuBiaoDaChengLv(user, beginDate1, endDate1);
			if(xinCheDaiBanShangPaiMuBiaoDaChengLv!=null) {
				return new AjaxResult(xinCheDaiBanShangPaiMuBiaoDaChengLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车代办上牌率 81
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheDaiBanShangPaiLv")
	public Object XinCheDaiBanShangPaiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheDaiBanShangPaiLv(user, beginDate1, endDate1)!=null) {
			 Float XinCheDaiBanShangPaiLv = saleComService.XinCheDaiBanShangPaiLv(user, beginDate1, endDate1);
			if(XinCheDaiBanShangPaiLv!=null) {
				return new AjaxResult(XinCheDaiBanShangPaiLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 销售综合收入  82
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XiaoShouZongHeShouRu")
	public Object XiaoShouZongHeShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XiaoShouZongHeShouRu(user, beginDate1, endDate1)!=null) {
			Float xiaoShouZongHeShouRu = saleComService.XiaoShouZongHeShouRu(user, beginDate1, endDate1);
			if(xiaoShouZongHeShouRu!=null) {
				return new AjaxResult(xiaoShouZongHeShouRu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 销售综合成本  83
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XiaoShouZongHeChengBen")
	public Object XiaoShouZongHeChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XiaoShouZongHeChengBen(user, beginDate1, endDate1)!=null) {
			Float XiaoShouZongHeChengBen = saleComService.XiaoShouZongHeChengBen(user, beginDate1, endDate1);
			if(XiaoShouZongHeChengBen!=null) {
				return new AjaxResult(XiaoShouZongHeChengBen);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 销售综合毛利  84
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XiaoShouZongHeMaoLi")
	public Object XiaoShouZongHeMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XiaoShouZongHeMaoLi(user, beginDate1, endDate1)!=null) {
			Float XiaoShouZongHeMaoLi = saleComService.XiaoShouZongHeMaoLi(user, beginDate1, endDate1);
			if(XiaoShouZongHeMaoLi!=null) {
				return new AjaxResult(XiaoShouZongHeMaoLi);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 销售综合毛利率  85
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XiaoShouZongHeMaoLiLv")
	public Object XiaoShouZongHeMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XiaoShouZongHeMaoLiLv(user, beginDate1, endDate1)!=null) {
			Float XiaoShouZongHeMaoLiLv = saleComService.XiaoShouZongHeMaoLiLv(user, beginDate1, endDate1);
			if(XiaoShouZongHeMaoLiLv!=null) {
				return new AjaxResult(XiaoShouZongHeMaoLiLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车销售收入  86
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheXiaoShouShouRu")
	public Object XinCheXiaoShouShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheXiaoShouShouRu(user, beginDate1, endDate1)!=null) {
			Integer xinCheXiaoShouShouRu = saleComService.XinCheXiaoShouShouRu(user, beginDate1, endDate1);
			if(xinCheXiaoShouShouRu!=null) {
				return new AjaxResult(xinCheXiaoShouShouRu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
	
	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车销售成本  87
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheXiaoShouChenBen")
	public Object XinCheXiaoShouChenBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheXiaoShouChenBen(user, beginDate1, endDate1)!=null) {
			Integer xinCheXiaoShouChenBen = saleComService.XinCheXiaoShouChenBen(user, beginDate1, endDate1);
			if(xinCheXiaoShouChenBen!=null) {
				return new AjaxResult(xinCheXiaoShouChenBen);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车销售毛利  88
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XinCheXiaoShouMaoLi")
	public Object XinCheXiaoShouMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XinCheXiaoShouMaoLi(user, beginDate1, endDate1)!=null) {
			Integer xinCheXiaoShouMaoLi = saleComService.XinCheXiaoShouMaoLi(user, beginDate1, endDate1);
			if(xinCheXiaoShouMaoLi!=null) {
				return new AjaxResult(xinCheXiaoShouMaoLi);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车销售毛利率  89
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/XincheXiaoShouMaoLiLv")
	public Object XincheXiaoShouMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.XincheXiaoShouMaoLiLv(user, beginDate1, endDate1)!=null) {
			Float xincheXiaoShouMaoLiLv = saleComService.XincheXiaoShouMaoLiLv(user, beginDate1, endDate1);
			if(xincheXiaoShouMaoLiLv!=null) {
				return new AjaxResult(xincheXiaoShouMaoLiLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交强险收入(新车交强险毛利+新车交强险成本)  90
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJiaoQiangXianShouRu")
	public Object newCarJiaoQiangXianShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJiaoQiangXianShouRu(user, beginDate1, endDate1)!=null) {
			Float newCarJiaoQiangXianShouRu = saleComService.newCarJiaoQiangXianShouRu(user, beginDate1, endDate1);
			if(newCarJiaoQiangXianShouRu!=null) {
				return new AjaxResult(newCarJiaoQiangXianShouRu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交强险成本(录入交强险金额-交强险毛利)  91
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJiaoQiangXianChengBen")
	public Object newCarJiaoQiangXianChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJiaoQiangXianChengBen(user, beginDate1, endDate1)!=null) {
			Float newCarJiaoQiangXianChengBen = saleComService.newCarJiaoQiangXianChengBen(user, beginDate1, endDate1);
			if(newCarJiaoQiangXianChengBen!=null) {
				return new AjaxResult(newCarJiaoQiangXianChengBen);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交强险毛利(录入交强险金额*交强险返利点)  92
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJiaoQiangXianMaoLi")
	public Object newCarJiaoQiangXianMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJiaoQiangXianMaoLi(user, beginDate1, endDate1)!=null) {
			Float newCarJiaoQiangXianMaoLi = saleComService.newCarJiaoQiangXianMaoLi(user, beginDate1, endDate1);
			if(newCarJiaoQiangXianMaoLi!=null) {
				return new AjaxResult(newCarJiaoQiangXianMaoLi);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车交强险毛利率(新车交强险毛利/新车交强险收入)  93
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJiaoQiangXianMaoLiLv")
	public Object newCarJiaoQiangXianMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJiaoQiangXianMaoLiLv(user, beginDate1, endDate1)!=null) {
			Float newCarJiaoQiangXianMaoLiLv = saleComService.newCarJiaoQiangXianMaoLiLv(user, beginDate1, endDate1);
			if(newCarJiaoQiangXianMaoLiLv!=null) {
				return new AjaxResult(newCarJiaoQiangXianMaoLiLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车商业险收入(新车商业险收入-新车商业险成本)  94
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarShangYeXianShouRu")
	public Object newCarShangYeXianShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarShangYeXianShouRu(user, beginDate1, endDate1)!=null) {
			Float newCarShangYeXianShouRu = saleComService.newCarShangYeXianShouRu(user, beginDate1, endDate1);
			if(newCarShangYeXianShouRu!=null) {
				return new AjaxResult(newCarShangYeXianShouRu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车商业险成本(录入商业险金额-商业险收入)  95
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarShangYeXianChengBen")
	public Object newCarShangYeXianChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarShangYeXianChengBen(user, beginDate1, endDate1)!=null) {
			Float newCarShangYeXianChengBen = saleComService.newCarShangYeXianChengBen(user, beginDate1, endDate1);
			if(newCarShangYeXianChengBen!=null) {
				return new AjaxResult(newCarShangYeXianChengBen);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车商业险毛利(录入商业险金额*商业险返利点)  96
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarShangYeXianMaoLi")
	public Object newCarShangYeXianMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarShangYeXianMaoLi(user, beginDate1, endDate1)!=null) {
			Float newCarShangYeXianMaoLi = saleComService.newCarShangYeXianMaoLi(user, beginDate1, endDate1);
			if(newCarShangYeXianMaoLi!=null) {
				return new AjaxResult(newCarShangYeXianMaoLi);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车商业险毛利率(新车商业险毛利/新车商业险收入)  97
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarShangYeXianMaoLiLv")
	public Object newCarShangYeXianMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarShangYeXianMaoLiLv(user, beginDate1, endDate1)!=null) {
			Float newCarShangYeXianMaoLiLv = saleComService.newCarShangYeXianMaoLiLv(user, beginDate1, endDate1);
			if(newCarShangYeXianMaoLiLv!=null) {
				return new AjaxResult(newCarShangYeXianMaoLiLv);				
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车精品销售收入(精品材料价格+精品工时价格)  98
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJingPinXiaoShouShouRu")
	public Object newCarJingPinXiaoShouShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJingPinXiaoShouShouRu(user, beginDate1, endDate1)!=null) {
			Float newCarJingPinXiaoShouShouRu = saleComService.newCarJingPinXiaoShouShouRu(user, beginDate1, endDate1);
			if(newCarJingPinXiaoShouShouRu!=null) {
				return new AjaxResult(newCarJingPinXiaoShouShouRu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车精品销售成本(精品材料成本+精品工时成本)  99
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJingPinXiaoShouChengBen")
	public Object newCarJingPinXiaoShouChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJingPinXiaoShouChengBen(user, beginDate1, endDate1)!=null) {
			Float newCarJingPinXiaoShouChengBen = saleComService.newCarJingPinXiaoShouChengBen(user, beginDate1, endDate1);
			if(newCarJingPinXiaoShouChengBen!=null) {
				return new AjaxResult(newCarJingPinXiaoShouChengBen);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车精品销售毛利(新车精品销售收入-新车精品销售成本)  100
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJingPinXiaoShouMaoLi")
	public Object newCarJingPinXiaoShouMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJingPinXiaoShouMaoLi(user, beginDate1, endDate1)!=null) {
			Float newCarJingPinXiaoShouMaoLi = saleComService.newCarJingPinXiaoShouMaoLi(user, beginDate1, endDate1);
			if(newCarJingPinXiaoShouMaoLi!=null) {
				return new AjaxResult(newCarJingPinXiaoShouMaoLi);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车精品销售毛利率(新车精品销售毛利/新车精品销售收入)  101
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJingPinXiaoShouMaoLiLv")
	public Object newCarJingPinXiaoShouMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJingPinXiaoShouMaoLiLv(user, beginDate1, endDate1)!=null) {
			Float newCarJingPinXiaoShouMaoLiLv = saleComService.newCarJingPinXiaoShouMaoLiLv(user, beginDate1, endDate1);
			if(newCarJingPinXiaoShouMaoLiLv!=null) {
				return new AjaxResult(newCarJingPinXiaoShouMaoLiLv);				
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车精品赠送成本(精品材料成本+精品工时成本)  102
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJingPinZengSongChengBen")
	public Object newCarJingPinZengSongChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJingPinZengSongChengBen(user, beginDate1, endDate1)!=null) {
			Float newCarJingPinZengSongChengBen = saleComService.newCarJingPinZengSongChengBen(user, beginDate1, endDate1);
			if(newCarJingPinZengSongChengBen!=null) {
				return new AjaxResult(newCarJingPinZengSongChengBen);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车金融服务收入（成本+毛利）  103
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJinRongShouRu")
	public Object newCarJinRongShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJinRongShouRu(user, beginDate1, endDate1)!=null) {
			Float newCarJinRongShouRu = saleComService.newCarJinRongShouRu(user, beginDate1, endDate1);
			if(newCarJinRongShouRu!=null) {
				return new AjaxResult(newCarJinRongShouRu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车金融服务成本(录入金融金额-金融毛利)  104
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJinRongChengBen")
	public Object newCarJinRongChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJinRongChengBen(user, beginDate1, endDate1)!=null) {
			Float newCarJinRongChengBen = saleComService.newCarJinRongChengBen(user, beginDate1, endDate1);
			if(newCarJinRongChengBen!=null) {
				return new AjaxResult(newCarJinRongChengBen);				
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车金融服务毛利(输入的金融金额*金融公司返利点)  105
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJinRongFuWuMaoLi")
	public Object newCarJinRongFuWuMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJinRongFuWuMaoLi(user, beginDate1, endDate1)!=null) {
			Float newCarJinRongFuWuMaoLi = saleComService.newCarJinRongFuWuMaoLi(user, beginDate1, endDate1);
			if(newCarJinRongFuWuMaoLi!=null) {
				return new AjaxResult(newCarJinRongFuWuMaoLi);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车金融服务毛利率（毛利/收入）  106
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarJinRongMaoLiLv")
	public Object newCarJinRongMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarJinRongMaoLiLv(user, beginDate1, endDate1)!=null) {
			Float newCarJinRongMaoLiLv = saleComService.newCarJinRongMaoLiLv(user, beginDate1, endDate1);
			if(newCarJinRongMaoLiLv!=null) {
				return new AjaxResult(newCarJinRongMaoLiLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车保养套餐收入(保养套餐价格)  107
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarBaoYangTaoCanShouRu")
	public Object newCarBaoYangTaoCanShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarBaoYangTaoCanShouRu(user, beginDate1, endDate1)!=null) {
			Float newCarBaoYangTaoCanShouRu = saleComService.newCarBaoYangTaoCanShouRu(user, beginDate1, endDate1);
			if(newCarBaoYangTaoCanShouRu!=null) {
				return new AjaxResult(newCarBaoYangTaoCanShouRu);				
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车保养套餐成本(保养套餐成本)  108
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarBaoYangTaoCanChengBen")
	public Object newCarBaoYangTaoCanChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarBaoYangTaoCanChengBen(user, beginDate1, endDate1)!=null) {
			Float newCarBaoYangTaoCanChengBen = saleComService.newCarBaoYangTaoCanChengBen(user, beginDate1, endDate1);
			if(newCarBaoYangTaoCanChengBen!=null) {
				return new AjaxResult(newCarBaoYangTaoCanChengBen);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车保养套餐毛利(保养套餐收入-保养套餐成本)  109
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarBaoYangTaoCanMaoLi")
	public Object newCarBaoYangTaoCanMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarBaoYangTaoCanMaoLi(user, beginDate1, endDate1)!=null) {
			Float newCarBaoYangTaoCanMaoLi = saleComService.newCarBaoYangTaoCanMaoLi(user, beginDate1, endDate1);
			if(newCarBaoYangTaoCanMaoLi!=null) {
				return new AjaxResult(newCarBaoYangTaoCanMaoLi);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 保养套餐毛利率(保养套餐毛利/保养套餐收入)  110
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarBaoYangTaoCanMaoLiLv")
	public Object newCarBaoYangTaoCanMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarBaoYangTaoCanMaoLiLv(user, beginDate1, endDate1)!=null) {
			Float newCarBaoYangTaoCanMaoLiLv = saleComService.newCarBaoYangTaoCanMaoLiLv(user, beginDate1, endDate1);
			if(newCarBaoYangTaoCanMaoLiLv!=null) {
				return new AjaxResult(newCarBaoYangTaoCanMaoLiLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车延保收入(延保价格)  111
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarYanBaoShouRu")
	public Object newCarYanBaoShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarYanBaoShouRu(user, beginDate1, endDate1)!=null) {
			Float newCarYanBaoShouRu = saleComService.newCarYanBaoShouRu(user, beginDate1, endDate1);
			if(newCarYanBaoShouRu!=null) {
				return new AjaxResult(newCarYanBaoShouRu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
		
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车延保成本(延保成本)  112
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarYanBaoChengBen")
	public Object newCarYanBaoChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarYanBaoChengBen(user, beginDate1, endDate1)!=null) {
			Float newCarYanBaoChengBen = saleComService.newCarYanBaoChengBen(user, beginDate1, endDate1);
			if(newCarYanBaoChengBen!=null) {
				return new AjaxResult(newCarYanBaoChengBen);				
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车延保毛利（新车延保收入-新车延保成本）  113
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarYanBaoMaoLi")
	public Object newCarYanBaoMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarYanBaoMaoLi(user, beginDate1, endDate1)!=null) {
			Float newCarYanBaoMaoLi = saleComService.newCarYanBaoMaoLi(user, beginDate1, endDate1);
			if(newCarYanBaoMaoLi!=null) {
				return new AjaxResult(newCarYanBaoMaoLi);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车延保毛利率（新车延保毛利/新车延保收入）  114
	 * @throws ParseException 

	 */
	@RequestMapping(value = "/newCarYanBaoMaoLiLv")
	public Object newCarYanBaoMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarYanBaoMaoLiLv(user, beginDate1, endDate1)!=null) {
			Float newCarYanBaoMaoLiLv = saleComService.newCarYanBaoMaoLiLv(user, beginDate1, endDate1);
			if(newCarYanBaoMaoLiLv!=null) {
				return new AjaxResult(newCarYanBaoMaoLiLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车代办上牌收入（成本+毛利）  115
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarDaiBanShangPaiShouRu")
	public Object newCarDaiBanShangPaiShouRu(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarDaiBanShangPaiShouRu(user, beginDate1, endDate1)!=null) {
			Float newCarDaiBanShangPaiShouRu = saleComService.newCarDaiBanShangPaiShouRu(user, beginDate1, endDate1);
			if(newCarDaiBanShangPaiShouRu!=null) {
				return new AjaxResult(newCarDaiBanShangPaiShouRu);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}

	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车代办上牌成本(录入车牌金额-车牌毛利)  116
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarDaiBanShangPaiChengBen")
	public Object newCarDaiBanShangPaiChengBen(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarDaiBanShangPaiChengBen(user, beginDate1, endDate1)!=null) {
			Float newCarDaiBanShangPaiChengBen = saleComService.newCarDaiBanShangPaiChengBen(user, beginDate1, endDate1);
			if(newCarDaiBanShangPaiChengBen!=null) {
				return new AjaxResult(newCarDaiBanShangPaiChengBen);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车代办上牌毛利(输入的车牌公司金额*车牌公司返利点)  117
	 * @throws ParseException 
	 */
	@RequestMapping(value = "/newCarDaiBanShangPaiMaoLi")
	public Object newCarDaiBanShangPaiMaoLi(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarDaiBanShangPaiMaoLi(user, beginDate1, endDate1)!=null) {
			Float newCarDaiBanShangPaiMaoLi = saleComService.newCarDaiBanShangPaiMaoLi(user, beginDate1, endDate1);
			if(newCarDaiBanShangPaiMaoLi!=null) {
				return new AjaxResult(newCarDaiBanShangPaiMaoLi);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}

	/**
	 * @param id
	 * @param beginDate
	 * @param endDate
	 * @return 新车代办上牌毛利率（毛利/收入）  118
	 * @throws ParseException
	 */
	@RequestMapping(value = "/newCarDaiBanShangPaiMaoLiLv")
	public Object newCarDaiBanShangPaiMaoLiLv(Integer id,String beginDate,String endDate) throws ParseException {
		SysUser user=userService.findById(id);
		DateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date beginDate1=dateformat.parse(beginDate);
		Date endDate1=dateformat.parse(endDate);
		if(saleComService.newCarDaiBanShangPaiMaoLiLv(user, beginDate1, endDate1)!=null) {
			Float newCarDaiBanShangPaiMaoLiLv = saleComService.newCarDaiBanShangPaiMaoLiLv(user, beginDate1, endDate1);
			if(newCarDaiBanShangPaiMaoLiLv!=null) {
				return new AjaxResult(newCarDaiBanShangPaiMaoLiLv);
			}else {
				return new AjaxResult(0);
			}
		}else {
			return new AjaxResult(false,"没有数据");
		}
	}
	
}
